package site.wetsion.employ.server.pojo;

import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Timestamp;

/**
 * 公司评论实体类
 * 对于数据库tb_company_comments
 * @author Wetsion
 *
 */
public class CompanyComment implements Serializable, Comparable<CompanyComment>{

	private static final long serialVersionUID = 1L;
	
	private BigInteger id;
	
	private BigInteger comment_company_id;
	
	private BigInteger comment_user_id;
	
	private String comment_detail;
	
	private BigInteger comment_prefer;
	
	private Timestamp gmt_create;
	
	private Timestamp gmt_modified;

	private User comment_user;
	
	private Company company;
	
	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public BigInteger getId() {
		return id;
	}

	public void setId(BigInteger id) {
		this.id = id;
	}

	public BigInteger getComment_company_id() {
		return comment_company_id;
	}

	public void setComment_company_id(BigInteger comment_company_id) {
		this.comment_company_id = comment_company_id;
	}

	public BigInteger getComment_user_id() {
		return comment_user_id;
	}

	public void setComment_user_id(BigInteger comment_user_id) {
		this.comment_user_id = comment_user_id;
	}


	public User getComment_user() {
		return comment_user;
	}

	public void setComment_user(User comment_user) {
		this.comment_user = comment_user;
	}

	public String getComment_detail() {
		return comment_detail;
	}

	public void setComment_detail(String comment_detail) {
		this.comment_detail = comment_detail;
	}

	public BigInteger getComment_prefer() {
		return comment_prefer;
	}

	public void setComment_prefer(BigInteger comment_prefer) {
		this.comment_prefer = comment_prefer;
	}

	public Timestamp getGmt_create() {
		return gmt_create;
	}

	public void setGmt_create(Timestamp gmt_create) {
		this.gmt_create = gmt_create;
	}

	public Timestamp getGmt_modified() {
		return gmt_modified;
	}

	public void setGmt_modified(Timestamp gmt_modified) {
		this.gmt_modified = gmt_modified;
	}

	@Override
	public int compareTo(CompanyComment o) {
		return comment_prefer.compareTo(o.getComment_prefer());
	}

	@Override
	public String toString() {
		return "CompanyComment [id=" + id + ", comment_company_id=" + comment_company_id + ", comment_user_id="
				+ comment_user_id + ", comment_detail=" + comment_detail + ", comment_prefer=" + comment_prefer
				+ ", gmt_create=" + gmt_create + ", gmt_modified=" + gmt_modified + ", comment_user=" + comment_user
				+ "]";
	}
	
	

}
